package core.data
{
	[Bindable]
	public class Player
	{
		public function Player()
		{
			
		}
		
		public var userID:String = "";//存放的是socketID
		public var name:String = "";
		public var password:String = "";
		public var room:String = "";
		public var table:String = "";
		public var seat:String = "";
		public var level:String = "";
		public var isStart:Boolean = false;
		public var headURL:String = "";
		
		public function setup(obj:Object):void
		{
			name 		= obj.name;
            level	    = obj.level;
            isStart		= obj.start=="1";
            room		= obj.roomID;
            table		= obj.tableID;
            seat		= obj.seatID;
            userID		= obj.userID;
			headURL		= obj.headURL;
		}
	}
}